<ion-view view-title="营销列表">
  <ion-nav-buttons side="right">
    <a  class="scor-color-gr-font button button-icon icon ion-ios-cart-outline" ng-click="goToCart()"></a>
  </ion-nav-buttons>
  <ion-content>
    <ion-refresher on-refresh="getType()"
                   pulling-text="下拉刷新..."
                   refreshing-text="拼命加载中..."
                   refreshing-icon="ion-loading-b">
    </ion-refresher>
    <ion-list>
      <ion-item class="padding-0-scor">
        <div class="bar bar-header item-input-inset" style="padding-top: 0">
          <label class="item-input-wrapper  ">
            <input type="search" ng-model="search.searchInput" class="item-input color-444 font-size-18p" placeholder="输入商品名称">
          </label>
          <a class="button button-assertive" style="margin-left:-5px!important; " ng-click="searchGood(search.searchInput,0)">
            <i class="icon ion-ios-search"></i>
          </a>
        </div>
        <div  class=" padding">
          <span ng-show="loadFinish.flag" class=" button  margin-top-sm-scor  button-assertive"   style="width:100%;display: block;float: left;"   ng-click="marketType(0)" >全部商品</span>
          <span ng-repeat="Type in MarketTypes" class=" button  margin-top-sm-scor  button-assertive"   style="width: 100%;display: block;float: left;"   ng-click="marketType(Type.id)" ng-bind="Type.get('title')"></span>
        </div>
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>
